#ifndef _SSHAPERECOVERY_H_
#define _SSHAPERECOVERY_H_

#include "auto.h"
#include <buola/datetime/clocks.h>

namespace buola { namespace bwm {

struct SShapeRecovery
{
    SShapeRecovery(const CMonotonicTime &t0,const chrono::microseconds &dt,double x0,double x1);

    double GetPos(const CMonotonicTime &t);
    bool IsFinished(const CMonotonicTime &t);

    CMonotonicTime t0;   //starting
    chrono::microseconds dt;   //total time
    double x0;  //starting pos  (in units)
    double x1;  //final pos     (in units)
    double vmax;//max speed     (in units/sec)
};

/*namespace bwm*/ } /*namespace buola*/ }

#endif
